Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #149 #286

Closed
wants to merge 2 commits into from
Closed

Fixes #149 #286

wants to merge 2 commits into from

Conversation

wasade
Copy link
Member

@wasade wasade commented Sep 19, 2023

Fixes #149. Note merge items reflected in #149 were resolved in a different PR it seems. Added use of partition for split.

@gregcaporaso
Copy link
Member

Thanks @wasade! Does biom.partition now handle the missing metadata case we were discussing here? I assume so since the unit tests are passing, and I do have a test for that case. (Sorry for not investigating myself, I'm really tied up this morning and I figured you know offhand.)

Comment on lines +34 to +35
if group is None:
continue
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gregcaporaso, we simply ignore tables where a null group was observed. The null is exposed via the .get in the partition_f. Does that seem reasonable for the intended uses?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to make sure I understand: you generate the partitioned table containing all samples that are missing metadata (i.e., the value is null), but just don't do anything with it so it's not included in the output? If so, that seems fine to me.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. Specifically, if the sample ID is not in the metadata lookup, a None is returned. The None group is then ignored.

@gregcaporaso gregcaporaso self-assigned this Dec 5, 2023
@gregcaporaso
Copy link
Member

gregcaporaso commented Dec 17, 2024

Replacing this with #323, which addresses the merge conflicts. That one is ready for merge when the tests pass. Sorry this one took forever to get to @wasade. Note that we'll integrate the new Table.partion API features when we update to biom 2.1.16 (planned for this release cycle; #324).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

BIOM 2.1.6 refactors
2 participants